<!--
 * @Author: your name
 * @Date: 2021-08-22 10:24:34
 * @LastEditTime: 2021-08-22 10:29:25
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\3-html&css\day10\弹性布局.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .section {
            width: 998px;
            height: 725px;
            /* border: 1px solid red; */
            margin: 0 auto;
            background-color: rgb(240, 240, 240);
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
        }
        
        .section>div {
            width: 244px;
            height: 354px;
            border: 1px solid blue;
            margin-left: 3px;
            margin-bottom: 8px;
        }
    </style>
</head>

<body>
    <div class="section">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
</body>

</html>